<template>
  <el-container>
    <el-aside :width="$store.state.home.isShrink ? '200px' : '64px'">
      <home-aside></home-aside>
    </el-aside>
    <el-container>
      <el-header>
        <home-header></home-header>
      </el-header>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
import HomeAside from "./components/HomeAside.vue";
import HomeHeader from "./components/HomeHeader.vue";

export default {
  components: {
    HomeAside,
    HomeHeader,
  },
};
</script>

<style scoped lang="less">
::v-deep .el-aside {
  height: 100vh;
  background-color: #f2f2f2;
  transition: width 0.15s;
}
::v-deep .el-header {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
::v-deep .el-main {
  background-color: #f2f2f2;
  height: calc(100vh - 60px);
}
</style>
